package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.TrafficVisitorTypeStatsBean;
import com.atguigu.edu.publisher.mapper.TrafficVisitorStatsMapper;
import com.atguigu.edu.publisher.service.TrafficVisitorStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficVisitorStatsServiceImpl implements TrafficVisitorStatsService {
    @Autowired
    TrafficVisitorStatsMapper trafficVisitorStatsMapper;

    @Override
    public List<TrafficVisitorTypeStatsBean> getVisitorTypeStats(Integer date) {
        List<TrafficVisitorTypeStatsBean> trafficVisitorTypeStatsBeans = trafficVisitorStatsMapper.selectVisitorTypeStats(date);
        return trafficVisitorTypeStatsBeans;
    }
}
